package com.joinpay.application;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * spring-boot 启动类
 *
 */
@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan("com.joinpay")   //指定spring boot 扫描的包(默认是启动类下所有的包)
@ServletComponentScan(basePackages="com.joinpay.listener")
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}